home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / vbdatabs / asprint.h < prev    next >
C/C++ Source or Header  |  1999-03-14  |  3KB  |  66 lines

  1. // ------------------------------- //
  2. // -------- Start of File -------- //
  3. // ------------------------------- //
  4. // ----------------------------------------------------------- // 
  5. // C++ Header File Name: asprint.h
  6. // Compiler Used: MSVC40, DJGPP 2.7.2.1, GCC 2.7.2.1, HP CPP 10.24
  7. // Produced By: Doug Gaer  
  8. // File Creation Date: 09/18/1997  
  9. // Date Last Modified: 03/15/1999
  10. // Copyright (c) 1997 Douglas M. Gaer
  11. // ----------------------------------------------------------- // 
  12. /*
  13. The VBD C++ classes are copyright (c) 1997, by Douglas M. Gaer.
  14. All those who put this code or its derivatives in a commercial
  15. product MUST mention this copyright in their documentation for
  16. users of the products in which this code or its derivative
  17. classes are used. Otherwise, you have the freedom to redistribute
  18. verbatim copies of this source code, adapt it to your specific
  19. needs, or improve the code and release your improvements to the
  20. public provided that the modified files carry prominent notices
  21. stating that you changed the files and the date of any change.
  22.  
  23. THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
  24. THE ENTIRE RISK OF THE QUALITY AND PERFORMANCE OF THIS SOFTWARE
  25. IS WITH YOU. SHOULD ANY ELEMENT OF THIS SOFTWARE PROVE DEFECTIVE,
  26. YOU WILL ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR
  27. CORRECTION.
  28.  
  29. These classes and functions are used to print data to ASCII
  30. text files and format data for various print functions.
  31. */
  32. // ----------------------------------------------------------- // 
  33. #ifndef __OFPRINT_HPP__
  34. #define __OFPRINT_HPP__
  35.  
  36. #include <fstream.h> 
  37.  
  38. // Constants for print functions
  39. const int asPrintCols = 80;      // Columns for portrait print outs
  40. const int asPrintColsLong = 132; // Columns for lanscape print outs
  41. const int asPrintRows = 25;      // Rows for portrait print outs
  42. const int asPrintRowsLong = 25;  // Rows for lanscape print outs
  43.  
  44. // Control characters
  45. const char asLineFeed = '\n';
  46.  
  47. // Function prototypes for standalone print functions
  48. void ASPrint(const char *s, ostream &stream, int offset, int pos = 0,
  49.          const char pad = ' ');
  50. void ASPrint(const char *s, const char filter, ostream &stream, int offset,
  51.          int pos = 0, const char pad = ' ');
  52. void ASPrint(const char c, ostream &stream, int offset, int pos = 0,
  53.          const char pad = ' ');
  54. void ASPrint(int val, ostream &stream, int offset, int pos = 0,
  55.          const char pad = ' ');
  56. void ASPrint(long val, ostream &stream, int offset, int pos = 0,
  57.          const char pad = ' ');
  58. void ASPrint(double val, ostream &stream, int offset, int pos = 0,
  59.          const char pad = ' ');
  60.  
  61. #endif // __OFPRINT_HPP__
  62. // ----------------------------------------------------------- //
  63. // ------------------------------- //
  64. // --------- End of File --------- //
  65. // ------------------------------- //
  66.